package com.smh.a01exceptionDemo1;

public class ExceptionDemo4 {
    public static void main(String[] args) {

        Student student = new Student();

        try {
            student.setAge(12);
        } catch (Exception e) {
            //自己处理
            System.out.println("exception");
        }


    }
}
